<script setup>
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import en from 'element-plus/dist/locale/en.mjs'

const { locale } = useI18n()

</script>

<template>
  <el-config-provider :locale="locale === 'en' ? en : zhCn">
    <router-view />
  </el-config-provider>
</template>

<style scoped>

</style>
